<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/5/15
 * Time: 15:00
 */

namespace app\admin\validate;


use think\Validate;

class Tag extends Validate
{
    protected $rule = [
        ['id','require','id不能为空'],
        ['name','require','标签名称不能为空'],
    ];

    protected $scene = [
        'add' => ['name'],
        'update' => ['id','name'],
    ];

}